import Vue from 'vue'
let server = 'http://localhost:8080/';
let getAllDetailUrl = '/goodorderdetail/getorderdetail';
let getGoodOrderUrl = '/goodorder/getgoodorder';

export default{
	insertPointDetailService: function(paramsObj,callBack){
		Vue.axios.post(`http://localhost:8080///pointdetail//insertPointDetail`, paramsObj).then(res => {
			callBack(res.data);
		})
	},
	updateGoodOrderService: function(paramsObj,callBack){
		Vue.axios.post(`http://localhost:8080//goodorder/updategoodorder`, paramsObj).then(res => {
			callBack(res.data.updateAim);
		})
	},
	getAllDetailService: function(paramsObj,callBack){
		Vue.axios.get(`${server}${getAllDetailUrl}/${paramsObj}`).then(res => {
			callBack(res.data);
		})
	},
	getGoodOrderService: function(paramsObj,callBack){
		Vue.axios.get(`${server}${getGoodOrderUrl}/${paramsObj}`).then(res => {
			callBack(res.data);
		})
	},
}